/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package bbd.crawler.xml.handler.fwk;

import bbd.crawler.dp.DataProcessorFactory;
import org.xml.sax.helpers.DefaultHandler;

/**
 *
 * @author Amogh
 */
public abstract class BaseXMLHandler
                    extends DefaultHandler
                    implements XMLHandlerInterface
{

    protected boolean dataLoaded = false;

    protected boolean processorAvailable = false;

    //--------------------------------------------------------------------------
    /** Javadoc here */
    public BaseXMLHandler () { } // end default constructor
    
    //--------------------------------------------------------------------------
    /** Javadoc here */
    public boolean isDataLoaded() {
        return dataLoaded;
    }

    //--------------------------------------------------------------------------
    /** Javadoc here */
    public boolean isProcessorAvailable() {
        return processorAvailable;
    }

    //--------------------------------------------------------------------------
    /** Javadoc here */
    public void setProcessorAvailable ( String classname ) {
        processorAvailable = DataProcessorFactory.getInstance().isMappingAvailable (classname);
    } // end function getParsedData

} // end class BaseXMLHandler
